package com.rbcs.budget.service;

import org.springframework.stereotype.Service;

import com.rbcs.budget.model.ProjectBudget;
import com.systop.core.ApplicationException;
import com.systop.core.service.BaseGenericsManager;

@Service
public class ProjectBudgetManager extends BaseGenericsManager<ProjectBudget> {

	public void save(ProjectBudget pb) {
		if (getDao().exists(pb, "singleNo")) {
			throw new ApplicationException("预算编号已存在:" + pb.getSingleNo());
		}
	}

}
